<ion-view view-title="聚农360">
	<ion-content class="has-header">
		<ion-refresher pulling-text="下拉刷新" pulling-icon="ion-loading-c" refreshing-text="刷新成功" refreshing-icon="ion-loading-c" on-refresh="reloadPage()">
		</ion-refresher>
		<ion-slide-box does-continue="true" auto-play="true" show-pager="true" slide-interval="3000">
			<ion-slide ng-repeat="item in articlePromoted | limitTo:4 | orderObjectBy:'time':'nid':'true'">
				<a href="#/article/articlePromoted/{{item.nid}}">
					<img width="100%" height="250px" ng-src="{{item.img}}">
				</a>

				<div id="tiao" style="background-color:#111;">
					<p id="p">{{item.title}}</p>
				</div>
			</ion-slide>
		</ion-slide-box>

		<div class="front-icon">
			<div class="front-icon-item">
				<a href="#/tabs/news">
					<img src="img/button/1.png" width="60" height="60" />
					<p>农业动态</p>
				</a>
			</div>
			<div class="front-icon-item">
				<a href="#/tabs/knowledge">
					<img src="img/button/2.png" width="60" height="60" />
					<p>农技知识</p>
				</a>
			</div>
			<div class="front-icon-item">
				<a href="#/tabs/market">
					<img src="img/button/3.png" width="60" height="60" />
					<p>农资市场</p>
				</a>
			</div>
			<div class="front-icon-item">
				<a href="#/tabs/case">
					<img src="img/button/4.png" width="60" height="60" />

					<p>产品故事</p>
				</a>
			</div>

			<div class="front-icon-item" ng-if="access.invoice">
				<a href="#/invoice/list">
					<img src="img/button/9.png" width="60" height="60" />
					<p>销售发票</p>
				</a>
			</div>
			<div  class="front-icon-item" ng-if="access.stock_info">
				<a href="#/stock_info/list">
					<img src="img/button/10.png" width="60" height="60" />
					<p>库存信息</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.monthly_report" >
				<a href="#/monthly_report/list">
					<img src="img/button/11.png" width="60" height="60" />
					<p>月清月结</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.sales_log" >
				<a href="#/sales_log/list">
					<img src="img/button/12.png" width="60" height="60" />
					<p>工作日志</p>
				</a>
			</div>
		<!--</div>-->

		<!--<div   ng-if="isEmployee">-->
			<div class="front-icon-item" ng-if="access.capacity" >
				<a href="#/capacity/list">
					<img src="img/button/5.png" width="60" height="60" />
					<p>市场容量</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.copetitors">
				<a href="#/competitors/list">
					<img src="img/button/6.png" width="60" height="60" />
					<p>竞品价格</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.brand_sales">
				<a href="#/brand_sales/list">
					<img src="img/button/7.png" width="60" height="60" />
					<p>品牌销量</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.plant_structure">
				<a href="#/plant_structure/list">
					<img src="img/button/8.png" width="60" height="60" />
					<p>种植结构</p>
				</a>
			</div>
		<!--</div>-->

		<!--<div   ng-if="isEmployee">-->
			<div class="front-icon-item" ng-if="access.plant_info">
				<a href="#/plant_info/list">
					<img src="img/button/13.png" width="60" height="60" />
					<p>种植信息</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.soil_info">
				<a href="#/soil_info/list">
					<img src="img/button/14.png" width="60" height="60" />
					<p>土壤信息</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.fertilizer_case">
				<a href="#/fertilizer_case/list">
					<img src="img/button/15.png" width="60" height="60" />
					<p>施肥案例</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.revisit">
				<a href="#/revisit/list">
					<img src="img/button/16.png" width="60" height="60" />
					<p>回访记录</p>
				</a>
			</div>
		<!--</div>-->

		<!--<div   ng-if="isEmployee">-->
			<div class="front-icon-item" ng-if="access.farmer">
				<a href="#/farmer/list">
					<img src="img/button/19.png" width="60" height="60" />
					<p>农户信息</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.village_activity">
				<a href="#/village_activity/list">
					<img src="img/button/17.png" width="60" height="60" />
					<p>村落活动</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.experts_work">
				<a href="#/experts_work/list">
					<img src="img/button/18.png" width="60" height="60" />
					<p>专家记录</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.retailstore">
				<a href="#/retailstore/list">
					<img src="img/button/19.png" width="60" height="60" />
					<p>门店登记</p>
				</a>
			</div>
			<div class="front-icon-item" ng-if="access.genuine_code">
				<a href="#/genuine_verification">
					<img src="img/button/20.png" width="60" height="60" />
					<p>正品验证</p>
				</a>
			</div>
		</div>

	</ion-content>
</ion-view>